﻿@model IEnumerable<Student>
@{
    ViewBag.Title = "学生详情页";
}

<div class="card-deck">
    @foreach(var student in Model)
    {
        <div class="card m-3">
            <div class="card-header">
                <h3>@student.Name</h3>
            </div>
            <img class="card-img-top" src="~/image/1.jpg" asp-append-version="true" />
            <div class="card-footer text-center">

                <a asp-controller="home" asp-action="details" asp-route-id="@student.Id">查看</a>

                <a href="/home/details/@student.Id" class="btn btn-primary m-1">查看</a>
                <a href="#" class="btn btn-primary m-1">删除</a>
                <a href="#" class="btn btn-primary m-1">编辑</a>
            </div>
        </div>

    }
</div>
